package com.gsm.entity;

public enum RespCode {
    SUCCESS(200, "success"),
    PERMISSION_DENIED(403, "权限不足"),
    ERROR(500, "系统较为繁忙..."),

    PARAMS_EXCEPTION(50001, "参数异常"),

    REG_REGISTERED(20001, "该账户已注册"),
    REG_NAME_NOT_EXIST_ERROR(20002, "该账号未注册"),

    LOGIN_NAME_IS_NOT_IPHONE_NO_OR_EMAIL(20003, "账户名格式错误,手机号/邮箱"),
    LOGIN_NAME_OR_PWD_ERROR(20010, "用户名或密码错误"),
    LOGIN_VERIFY_CODE_DENY(20011, "验证码已失效或错误"),
    ;

    private Integer code;
    private String msg;

    RespCode(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
